from user import User

class Teacher(User):
    def __init__(self, name, age, gender, id, is_mentor, class_list):
        super().__init__(name, age, gender, id)
        self.is_mentor = is_mentor
        self.class_list = class_list


    def show_info(self):
        super().show_info()
        print("是否为辅导员：%s" %["否", "是"][self.is_mentor])
        print("班级列表：")
        for i in self.class_list:
            print(i)